<?php
require_once "db.php";

$query = "SELECT * FROM cinema WHERE active_or_not = 0";
$get_cinema = db_query($query);
$final_content = "";

if(mysqli_num_rows($get_cinema)!=0) {
	$final_content .="<div id='cinema-list'>";
	while ($row = mysqli_fetch_assoc($get_cinema)) {
		$idcinema = $row['idcinema'];
		$cinema_name = $row['cinema_name'];
		$address = $row['address'];
		$logo = $row['logo'];
		$row_content = "<div class='cinema-box'>
			<div class='cinema-logo'>
				<img src='cinema-logos".$logo."'/>
			</div>
			<div class='cinema-name3'><span id=cinemaname>".$cinema_name."</span></div>
			<div class='address'>
				".$address."
			</div>
		</div>";
		$final_content .=$row_content;
	}
$final_content .="</div>";
}

echo $final_content;
